<MPSCNNBatchNormalizationDataSource >(3) | MetalPerformanceShaders.framework | <MPSCNNBatchNormalizationDataSource >(3) |
<MPSCNNBatchNormalizationDataSource >
#import <MPSCNNBatchNormalization.h>
Inherits <MPSStateNSObject>, and <NSCopying>.
(NSUInteger) - numberOfFeatureChannels
(float *__nullable) - gamma
(float *__nullable) - beta
(float *__nullable) - mean
(float *__nullable) - variance
(BOOL) - load
(void) - purge
(NSString *__nullable) - label
(MPSCNNNormalizationGammaAndBetaState *__nullable) -
updateGammaAndBetaWithCommandBuffer:batchNormalizationState:
(MPSCNNNormalizationMeanAndVarianceState *__nullable) -
updateMeanAndVarianceWithCommandBuffer:batchNormalizationState:
(BOOL) - updateGammaAndBetaWithBatchNormalizationState:
(BOOL) - updateMeanAndVarianceWithBatchNormalizationState:
(float) - epsilon
(void) - encodeWithCoder:
(nullable instancetype) - initWithCoder:
(nonnull instancetype) - copyWithZone:device:
BOOL supportsSecureCoding
Returns a pointer to the bias terms for the batch normalization. If NULL then no bias is to be applied.
Optional copy method to create a copy of the data source for use with a new device.
Parameters:
Returns:
NSSecureCoding compatibility.
An optional tiny number to use to maintain numerical stability. output_image = (input_image - mean[c]) * gamma[c] / sqrt(variance[c] + epsilon) + beta[c]; Defalt value if method unavailable: FLT_MIN
Returns a pointer to the scale factors for the batch normalization.
NSSecureCoding compatibility.
A label that is transferred to the batch normalization filter at init time Overridden by a MPSCNNBatchNormalizationNode.label if it is non-nil.
Alerts the data source that the data will be needed soon Each load alert will be balanced by a purge later, when MPS no longer needs the data from this object. Load will always be called atleast once after initial construction or each purge of the object before anything else is called.
Returns:
Returns a pointer to batch mean values with which to initialize the state for a subsequent batch normalization.
Returns the number of feature channels within images to be normalized using the supplied parameters.
Alerts the data source that the data is no longer needed Each load alert will be balanced by a purge later, when MPS no longer needs the data from this object.
Compute new gamma and beta values using current values and gradients contained within a MPSCNNBatchNormalizationState. Perform the update using the CPU.
Parameters:
Returns:
Compute new gamma and beta values using current values and gradients contained within a MPSCNNBatchNormalizationState. Perform the update using a GPU. This operation is expected to also decrement the read count of batchNormalizationState by 1.
Parameters:
Returns:
Compute new mean and variance values using current batch statistics contained within a MPSCNNBatchNormalizationState. Perform the update using the CPU.
Parameters:
Returns:
Compute new mean and variance values using current batch statistics contained within a MPSCNNBatchNormalizationState. Perform the update using a GPU. This operation is expected to also decrement the read count of batchNormalizationState by 1.
Parameters:
Returns:
Returns a pointer to batch variance values with which to initialize the state for a subsequent batch normalization.
NSSecureCoding compatibility.
Generated automatically by Doxygen for MetalPerformanceShaders.framework from the source code.
Mon Jul 9 2018 | Version MetalPerformanceShaders-119.3 |